package com.jash.labor.context;


/**
 * @author yuqinglei
 * @date 2017/12/27.
 * <p>
 * 描述：主动抛出的异常类
 */
public class ErrorResultCode {

    private ErrorResultCode() {
    }

    /**
     * 用户相关异常10001-20000
     */
    public static final ErrorResult USER_NOT_FOUND = new ErrorResult(10001, "用户不存在！");
    public static final ErrorResult REFEREE_IS_NOT_REPAIRSHOP = new ErrorResult(10014, "推荐人必须是维修商角色！");
    public static final ErrorResult REFEREE_NOT_FOUND = new ErrorResult(10015, "推荐人不存在！");
    public static final ErrorResult USER_PASSWORD_INCORRECT = new ErrorResult(10002, "密码不正确！");
    public static final ErrorResult USER_IS_DISABLED = new ErrorResult(10003, "用户被禁用，请联系管理员！");
    public static final ErrorResult USER_MOBILE_EXIST = new ErrorResult(10004, "手机号已经存在！");
    public static final ErrorResult NO_FIND = new ErrorResult(10005, "无权限查询");
    public static final ErrorResult NO_RESULT = new ErrorResult(-1, "无结果");
    public static final ErrorResult USER_TYPE_INCORRECT = new ErrorResult(10006, "类型不正确");
    public static final ErrorResult MOBILE_NOT_FOUND = new ErrorResult(10007, "手机号不正确");
    public static final ErrorResult NO_USER_ABOUT = new ErrorResult(10008, "附近没有符合条件的商家");
    public static final ErrorResult AUDIO_UPLOAD_FAILED = new ErrorResult(10009, "语音上传失败");
    public static final ErrorResult JPUSH_FAILED = new ErrorResult(10011, "推送数据失败");
    public static final ErrorResult JPUSH_ID_NOT_FOUND = new ErrorResult(10012, "推送ID获取失败");
    public static final ErrorResult LOCATION_NOT_FOUND = new ErrorResult(10013, "定位失败");
    public static final ErrorResult SERVER_FATAL = new ErrorResult(10014, "服务器故障，请联系管理员");

    public static final ErrorResult DRIVER_MOBILE_NOTFOUND = new ErrorResult(20001, "您输入的手机号还未注册三兄弟APP");
    public static final ErrorResult CARNUM_EXIST = new ErrorResult(20002, "您输入的车牌号已在其他城市代理人处进行登记");
    public static final ErrorResult CITYPRATNER_EXIST = new ErrorResult(20002, "您输入的卡友已在其他代理人名下");
    public static final ErrorResult CITYPRATNER_MOBILE_EXIST = new ErrorResult(20003, "手机号已经被占用");
    public static final ErrorResult CITYPRATNER_USERNAME_EXIST = new ErrorResult(20004, "用户名已经被占用");
}
